package com.nstar.helloworld.view
{
	import mx.containers.VBox;
	import mx.events.FlexEvent;
	import mx.controls.LinkButton;
	import mx.controls.TextInput;
	import flash.events.MouseEvent;
	import flash.events.Event;

	public class RegisterClass extends VBox
	{
		public var txtUserName:TextInput;
		public var txtUserPass:TextInput;
		public var txtPassConfirm:TextInput;
		
		public var btnRegister:LinkButton;
		public var btnBack:LinkButton;
		
		public function RegisterClass()
		{
			//TODO: implement function
			super();
			this.addEventListener(FlexEvent.CREATION_COMPLETE,init);
		}
		
		//初始化
		function init(event:FlexEvent):void{
			btnRegister.addEventListener(MouseEvent.CLICK,registerHandler);
			btnBack.addEventListener(MouseEvent.CLICK,backHandler);
		}
		
		function registerHandler(event:MouseEvent):void{
			
		}
		
		function backHandler(event:MouseEvent):void{
			this.dispatchEvent( new Event( Event.CHANGE ) );
		}
	}
}